package com.shuai.chatroom.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
public class UserInfo implements Serializable {
    private final long serializableId = 1;
    @JsonProperty
    private Integer uId;
    private String username;
    private String password;
    private String nickname;
    private LocalDateTime createTime;
    private String photo;

    private Integer isAdded;    //1代表已添加，0未添加

    @JsonIgnore
    public Integer getUId() {
        return uId;
    }
}
